package com.liweitong.minhang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author Weton Li
 * @Date 2021/5/21 19:16
 */
@Data
@TableName("flight")
public class Flight {
    //    @TableField("fno")
    @TableId(value = "fno")//在自增主键的变量加上即可
    private String fno;
    //    @TableField("fstart")
    private String fstart;
    private String fend;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd")
    private Date fdate;
    private String ftakeOff;
    private String farrive;
    private Integer fseat;
    private Float fprice;
    private Float fdiscountVote;
    private Float fdiscountRate;
    private String fcompany;
}
